@layout("/backend/common/_container.html"){
<link rel="stylesheet" type="text/css" href="${ctxPath}/static/backend/sds/sdsqcformitem/style.css">
<!--<style>

    .table th, .table td {

        text-align: center;

        vertical-align: middle !important;
    }

    .dhcc-form .form-control:focus {
        box-shadow: none;
    }
</style>-->
<#Hidden id="qcEntityMap" value="${qcEntityMap!}"/>
<#Hidden id="dataSourceMap" value="${dataSourceMap!}"/>
<#Hidden id="qcMap" value="${qcMap!}"/>
<#Hidden id="recommendTypeMap" value="${recommendTypeMap!}"/>
<!--<div class="dhcc-form">

    <form method='post' id="sdcTreatPlanInfoForm" name="sdcTreatPlanInfoForm" enctype="multipart/form-data">

        <input type="hidden" id="id" name="id" value="${sdcTreatPlanId!}">
        <div class="form-group has-feedback">
            <label class="lab">方案推荐</label>
            <div class="ele">
                &lt;!&ndash;<input class="hisui-combobox textbox" id="recommendType" name="recommendType" style="width: 500px">&ndash;&gt;
                <select class="hisui-combobox textbox" id="recommendType" name="recommendType" style="width: 500px">
                        data-options="editable:false,multiple:false,panelHeight:'auto',selectOnNavigation:false
                                            ">
                    @for (recommendType in recommendTypeMap) {
                    <option value="${recommendType.key}">${recommendType.value}</option>
                    @}
                </select>
            </div>
        </div>
        <div class="form-group has-feedback">
            <label class="lab">方案名称</label>
            <div class="ele">
                <input class="textbox" id="itemName" name="itemName">
            </div>
        </div>
        <div class="form-group has-feedback">
            <label class="lab">方案备注</label>
            <div class="ele">
                &lt;!&ndash;<input class="textbox" id="itemDesc" name="itemDesc" >&ndash;&gt;
                <textarea id="itemDesc" class="textbox"></textarea>
            </div>
        </div>
        <div class="form-group has-feedback">
            <label class="lab">所属病种</label>
            <div class="ele">
                <input class="hisui-combobox textbox" id="qcEntity" name="qcEntity" style="width: 500px">
            </div>
        </div>


        <div class="form-inline" style="margin-bottom: 15px;">
            <div class="form-group  has-feedback">
                <label class="checkbox-inline" for="sourceFlag">
                    <span style="margin-right: 18px;">文献来源</span>
                </label>
                <input class='hisui-checkbox' id="sourceFlag" type="checkbox" style="margin-left: 0">
            </div>
            <div class="form-group  has-feedback" style="float: right;margin-right:36px;">
                <label class="checkbox-inline" for="noCondition" style="padding-left: 0;">
                    <span style="margin-right: 18px;">前置条件</span>
                </label>
                <input class='hisui-checkbox' id="noCondition" type="checkbox" style="margin-left: 0">
            </div>
        </div>
        &lt;!&ndash;<div class="form-group form-inline has-feedback">&ndash;&gt;
        &lt;!&ndash;<label class="lab">文献来源</label>&ndash;&gt;
        &lt;!&ndash;<div class="ele">&ndash;&gt;
        &lt;!&ndash;<input class='hisui-checkbox' id="sourceFlag" type="checkbox" style="width: 200px">&ndash;&gt;
        &lt;!&ndash;</div>&ndash;&gt;
        &lt;!&ndash;<label class="lab">前置条件</label>&ndash;&gt;
        &lt;!&ndash;<div class="ele">&ndash;&gt;
        &lt;!&ndash;<input class='hisui-checkbox' id="noCondition" type="checkbox" style="width: 200px">&ndash;&gt;
        &lt;!&ndash;</div>&ndash;&gt;
        &lt;!&ndash;</div>&ndash;&gt;


        <div class="form-group has-feedback">
            <label class="lab">关联质控项</label>
            <div class="ele">
                <input class="hisui-combobox textbox" id="qcId" name="qcId" style="width: 500px">
            </div>
        </div>

        <div class="form-group has-feedback">
            <label class="lab">显示时间段</label>
            <div class="ele  has-feedback">
                <div id="referenceEvent" class="hisui-switchbox" style="margin-left:5px" data-options="onText:'有',offText:'无',
                    size:'small',animated:true,onClass:'primary',offClass:'gray',onSwitchChange:SdcTreatPlanInfoDlg.switchChange">
                </div>
            </div>
        </div>

        <div id="referenceFlag">
            <div class="form-group has-feedback">
                <label class="lab">参照时间</label>
                <div class="ele">
                    <table class="table table-bordered">
                        <thead>
                        <tr>
                            <th width="120px">数据源</th>
                            <th width="120px">取值字段</th>
                            <th width="80px">传参</th>
                        </tr>
                        </thead>
                        <tbody>
                        <tr>
                            <td>
                                <select class="hisui-combobox textbox" id="dataSource" name="dataSource"
                                        style="width: 150px"
                                        data-options="editable:false,multiple:false,allowNull:true,selectOnNavigation:false,onSelect:SdcTreatPlanInfoDlg.sourceChange">
                                                          </select>
                            </td>
                            <td>
                                <select class="hisui-combobox textbox" id="dataSourceItem" name="dataSourceItem"
                                        style="width: 150px"
                                        data-options="editable:false,multiple:false,panelHeight:'100',selectOnNavigation:false">
                                </select>
                            </td>
                            <td>
                                <input class="textbox" type="text" style="width: 80px" name="param" id="param">
                            </td>
                        </tr>
                        </tbody>
                    </table>
                </div>
            </div>

            <div class="form-inline" style="margin-bottom: 15px;padding-left: 15px;">
                <div class="form-group has-feedback">
                    <label class="lab">开始时间</label>
                    <input class="textbox form-control" id="pushStart" name="pushStart" style="width: auto;">
                </div>
                <div class="form-group has-feedback">
                    <label class="lab">结束时间</label>
                    <input class="textbox form-control" id="pushEnd" name="pushEnd" style="width: auto;">
                </div>
            </div>

            <div class="form-group has-feedback">
                <label class="lab">计算单位</label>
                <div class="ele">
                    <input class="hisui-combobox textbox" id="timeUnit" name="timeUnit" style="width: 500px">
                </div>
            </div>
        </div>
        <div class="toolbar">
            <#Button name="保存" id="ensure" icon="icon-w-save" clickFun="SdcTreatPlanInfoDlg.addSubmit()"/>
            <#Button btnCss="l-bt-red" name="关闭" id="cancel" icon="icon-w-close"
            clickFun="SdcTreatPlanInfoDlg.close()"/>
        </div>

    </form>
</div>-->
<div id="treatPlanTabs" class="hisui-tabs tabs-gray" data-options="fit:true,onSelect:SdcTreatPlanInfoDlg.changeTabs">
    <div title="基本信息" style="padding:10px;border:0px;">
        <form method='post' id="sdcTreatPlanInfoForm" name="sdcTreatPlanInfoForm" enctype="multipart/form-data">
            <input type="hidden" id="id" name="id" value="0">
            <div class="row " style="margin-right: 0px !important;padding-top: 8px;">
                <span class="col-sm-1  control-span">方案推荐</span>
                <div class="col-sm-9">
                    <select class="hisui-combobox textbox" id="recommendType" name="recommendType" style="width: 600px">
                        data-options="editable:false,multiple:false,panelHeight:'auto',selectOnNavigation:false
                        ">
                        @for (recommendType in recommendTypeMap) {
                        <option value="${recommendType.key}">${recommendType.value}</option>
                        @}
                    </select>
                </div>
            </div>
            <div class="row " style="margin-right: 0px !important;padding-top: 8px;">
                <span class="col-sm-1  control-span">方案名称</span>
                <div class="col-sm-9">
                    <input class="textbox" id="itemName" name="itemName" type="text" style="width: 595px">
                </div>
            </div>
            <div class="row" style="margin-right: 0px !important;padding-top: 8px;">
                <span class="col-sm-1  control-span">方案备注</span>
                <div class="col-sm-9">
                    <textarea id="itemDesc" class="textbox" style="width: 595px"></textarea>
                </div>
            </div>
            <div class="row" style="margin-right: 0px !important;padding-top: 8px;">
                <span class="col-sm-1  control-span">类型</span>
                <div class="col-sm-9">
                    <input class="textbox" id="vteType" name="vteType" type="text" style="width: 600px"
                           placeholder="1 VTE通用方案  其他待扩展">
                </div>
            </div>
            <div class="row " style="margin-right: 0px !important;padding-top: 10px;">
                <span class="col-sm-1  control-span">所属病种</span>
                <div class="col-sm-9">
                    <input class="hisui-combobox textbox" id="qcEntity" name="qcEntity" style="width: 600px">
                </div>
            </div>

            <div class="row btn-margin-bottom" style="margin-right: 0px !important;padding-top: 5px;">
                <span class="col-sm-1 control-span" style="padding-top: 5px;">文献来源</span>
                <div class="col-sm-2">
                    <input class='hisui-checkbox' id="sourceFlag" type="checkbox">
                </div>
                <span class="col-sm-1 control-span" style="padding-top: 5px;">前置条件</span>
                <div class="col-sm-2">
                    <input class='hisui-checkbox' id="noCondition" type="checkbox">
                </div>
                <span class="col-sm-1 control-span" style="padding-top: 5px;">是否生效</span>
                <div class="col-sm-2">
                    <input class='hisui-checkbox' id="isActive" type="checkbox">
                </div>
            </div>
            <div class="row" style="margin-right: 0px !important;">
                <span class="col-sm-1  control-span">关联质控项</span>
                <div class="col-sm-9">
                    <input class="hisui-combobox textbox" id="qcId" name="qcId" style="width: 600px">
                </div>
            </div>
            <div class="toolbar" style="text-align: center;padding-top: 10px;padding-bottom: 10px;">
                <#Button name="保存" id="dataConfigButton" icon="icon-w-save" clickFun="SdcTreatPlanInfoDlg.addSubmit()"/>
            </div>
        </form>
    </div>
    <div title="显示时间段" data-options="" style="padding:50px;" id="timeQuantum">
        @include("/backend/sdc/sdctreatplan/sdctreattimequantum.html"){}
    </div>
    <div title="显示前提" data-options="" style="padding:10px;" id="precondition">
        @include("/backend/sdc/sdctreatplan/sdctreatplanprecondition.html"){}
    </div>
</div>
<script src="${ctxPath}/static/backend/sdc/sdctreatplan/sdctreatplan_add.js"></script>
@}
